#ifndef _LIB_H264__DECODER_H__
#define _LIB_H264__DECODER_H__

#include "avcodec.h"

void initDecoder(AVCodecContext** c, AVFrame** picture);

void unInitDecoder(AVCodecContext** c, AVFrame** picture);

void decodeNal(unsigned char* nalBuf, int nalLen, unsigned char* yuvBuf, AVCodecContext* c, AVFrame* picture);

int getNextNal(FILE* inpf, unsigned char* Buf);

#endif